/*
 * @Description: 
 * @FilePath: \hksj-vued:\03code\hk-purchase-system\src\directive\index.ts
 * @Date: 2023-07-19 14:05:07
 * @LastEditTime: 2023-11-10 17:28:22
 */
import type { App } from 'vue';
import { authDirective } from '/@/directive/authDirective';
import { btnPermission } from '/@/directive/btnPermission';
import { wavesDirective, dragDirective } from '/@/directive/customDirective';
import { thousands } from './thousands';

/**
 * 导出指令方法：v-xxx
 * @methods authDirective 用户权限指令，用法：v-auth
 * @methods wavesDirective 按钮波浪指令，用法：v-waves
 * @methods dragDirective 自定义拖动指令，用法：v-drag
 * @methods btnPermission 自定义拖动指令，用法：v-btnPermission
 */
export function directive(app: App) {
  // 用户权限指令
  authDirective(app);
  // 按钮波浪指令
  wavesDirective(app);
  // 自定义拖动指令
  dragDirective(app);
  // 按钮权限指令
  btnPermission(app)
  // 千分位指令
  thousands(app)
}
